﻿
@page
@model AdminUI.Pages.BaseData.TenantEdit2Model
@{
    var F = Html.F();
}

@section body{
    <f:Form ID="Form1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="15" IsViewPort="true">
        <Rows>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:HiddenField ID="TenantID" Text="@Model.Current.TenantID"></f:HiddenField>
                    <f:TextBox ID="TenantName" Required="true" Label="应用名称" LabelWidth="110" Text="@Model.Current.TenantName" EmptyText="请输入应用名称" ShowRedStar="true" MaxLength="30"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:TextBox ID="Linkman" Required="false" Label="联系人" LabelWidth="110" Text="@Model.Current.Linkman" EmptyText="请输入联系人"></f:TextBox>
                    <f:TextBox ID="Phone" Required="false" Label="联系电话" LabelWidth="110" Text="@Model.Current.Phone" EmptyText="请输入联系电话"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="Address" Required="false" Label="联系地址" LabelWidth="110" Text="@Model.Current.Address" EmptyText="请输入联系地址"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:NumberBox ID="MADiscount" Label="A级会员折扣" LabelWidth="110" EmptyText="" Text="@Model.Current.MADiscount" MaxValue="1" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                    <f:NumberBox ID="MBDiscount" Label="B级会员折扣" LabelWidth="110" EmptyText="" Text="@Model.Current.MBDiscount" MaxValue="1" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:NumberBox ID="MCDiscount" Label="C级会员折扣" LabelWidth="110" EmptyText="" Text="@Model.Current.MCDiscount" MaxValue="1" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                    <f:TextBox ID="MAName" Required="true" Label="A级会员别名" LabelWidth="110" Text="@Model.Current.MAName" EmptyText="请输入A级会员别名"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:TextBox ID="MBName" Required="true" Label="B级会员别名" LabelWidth="110" Text="@Model.Current.MBName" EmptyText="请输入B级会员别名"></f:TextBox>
                    <f:TextBox ID="MCName" Required="true" Label="C级会员别名" LabelWidth="110" Text="@Model.Current.MCName" EmptyText="请输入C级会员别名"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:DropDownList ID="CommissionFlag" Label="业绩提成标志" LabelWidth="110" SelectedValue="@Model.Current.CommissionFlag" Width="300">
                        <f:ListItem Text="没有业绩提成" Value="0" />
                        <f:ListItem Text="团队业绩提成" Value="1" />
                        <f:ListItem Text="区域业绩提成" Value="2" />
                    </f:DropDownList>
                    <f:NumberBox ID="CommissionRatio" Label="业绩提成比例" LabelWidth="110" EmptyText="" Text="@Model.Current.CommissionRatio" MaxValue="0.5" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:NumberBox ID="L1Ratio" Label="直推奖励比率" LabelWidth="110" EmptyText="" Text="@Model.Current.L1Ratio" MaxValue="1" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                    <f:NumberBox ID="L2Ratio" Label="间推奖励比率" LabelWidth="110" EmptyText="" Text="@Model.Current.L2Ratio" MaxValue="1" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="ExpressCompanyList" Required="false" Label="合作快递公司" LabelWidth="110" Text="@Model.Current.ExpressCompanyList" EmptyText="请输入合作快递公司：多个快递公司用竖杠“|”分割"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                </Items>
            </f:FormRow>
        </Rows>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="关闭" Icon="Cross" IconFont="Close" OnClientClick="F.activeWindow.hide();"></f:Button>
                    <f:Button ID="btnReset" Text="重置" Icon="ArrowUndo" OnClientClick="F.ui.Form1.reset();"></f:Button>
                    <f:Button ID="btnSubmit" Text="保存" Icon="SystemSave" OnClick="@Url.Handler("btnSubmit_Click")" _ValidateForms="Form1" OnClickFields="Form1"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Form>
    
    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="400" Height="500">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section script {
    <script>

    </script>
}
